package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.UserBean;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface IUserMapper extends BaseMapper<UserBean> {
    public void addCenter(@Param("userId") Integer userId,
                          @Param("gradeIdArray") Integer[] gradeIdArray);
    @Delete("delete from t_user_grade where fk_userId=#{id};" +
            "delete from t_user where pk_userId=#{id};")
    public void del(Integer userId);

    public void updateGrade(@Param("userId") Integer userId,
                            @Param("gradeIdArray") Integer[] gradeIdArray);
}
